package com.masterrabbit.controller;

import com.masterrabbit.domain.Reviews;
import com.masterrabbit.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
//评价
@RestController
@RequestMapping("/review")
public class ReviewController {
    @Autowired
    private ReviewService reviewService;
@RequestMapping("/search")
    public List<Reviews> review(Integer merchantId){
        return reviewService.searchReview(merchantId);
    }
}
